<meta charset="utf-8">
<script>
    var sum = 0;
    for(var i=1;i<50;i++){
        if(i%7!=0){
            continue;
        }
        sum = sum+i;
        document.write(i+" ")
    }
    alert(sum);
</script>
